<?php
/**
 * 发现频道
 */
namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Models\MovieWatchUser;
use App\Transformers\ExploreTransformer;
class ExploreController extends Controller
{
    public function index()
    {
        $explores = MovieWatchUser::orderBy('updated_at', 'desc')->paginate(20);
        return $this->response->paginator($explores, new ExploreTransformer);
    }
}
